package com.jamu.mbok;

import android.content.Context;
import android.media.MediaPlayer;

public class GameSound {
	private static MediaPlayer gamemusic;
	public static boolean isMusicPlayed;
	public static boolean isSoundEffectOn;

	public static void startGameMusic(Context context) {
		gamemusic = MediaPlayer.create(context, R.raw.game_music);
		gamemusic.setLooping(true);
		gamemusic.start();
		isMusicPlayed = true;
	}
	
	public static void playSoundEffect(int index){
		switch(index){
		case 0:;
		case 1:;
		case 2:;
		case 3:;
		case 4:;
		}
	}
	
	public static void stopGameMusic() {
		if(gamemusic!=null) {
			gamemusic.release();
			isMusicPlayed = false;
		}
	}
	
}
